package cn.gavin.service;

import cn.gavin.domain.Department;
import cn.gavin.qo.QueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IDepartmentService {
    void deleteById(Long id);

    void insert(Department department);

    Department findById(Long id);

    List<Department> listAll();

    void update(Department department);
    // 分页查询
    PageInfo<Department> query(QueryObject qo);
}
